import { createPath, createName } from '@/router/utils/utils';

const MODEL_NAME = 'read';

const routeConfig = [
  // { path: 'home', component: () => import('@/views/read/Home.vue') },
  // { path: 'search', component: () => import('@/views/read/Search.vue') },
  // { path: 'mine', component: () => import('@/views/read/Mine.vue') },
  // { path: 'reader', component: () => import('@/views/read/Read.vue') },
  // { path: 'reader2', component: () => import('@/views/read/Read2.vue') },
  // { path: 'details', component: () => import('@/views/read/Details.vue') }
];

const router = routeConfig.map(({ path, component }) => ({
  path: createPath(MODEL_NAME, path),
  name: createName(MODEL_NAME, path),
  component
}));
export default router;
